package com.project.systemfront.controller;


import com.project.systemfront.common.Result;
import com.project.systemfront.pojo.Banner;
import com.project.systemfront.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;


import java.util.List;


@RestController
@RequestMapping("/system/banner")
public class BannerController
{

   @Autowired
   private IBannerService bannerService;

   @GetMapping
   public Result<List<Banner>> getBannerList()
   {     Banner banner = new Banner();
         banner.setStatus(1L);
	  return Result.success( bannerService.selectBannerList(banner));
   }

   }
